#ifndef _TCP_H
#define _TCP_H

#include "head.h"


//获取server ip prot
void get_local_ip(int sockfd,char * ip,unsigned short * port);

//tcp初始化
int tcp_init(const char * ip, unsigned short port);

#endif